package top.codedance.iotp.client.net.configuration;

import top.codedance.iotp.common.entity.CliCmdEntity;

import java.util.ArrayList;
import java.util.List;

public class CliCmdOptionsConfig {
    public static List<CliCmdEntity> getCmds(){
        List<CliCmdEntity> cmds = new ArrayList<>();
        cmds.add(new CliCmdEntity(true,"d", "deviceId", true, "Unique device id.", String.class));
        cmds.add(new CliCmdEntity(false,"h", "host", true, "Tcp server host.", Integer.class));
        cmds.add(new CliCmdEntity(false,"p", "port", true, "Tcp server port.", Integer.class));
        cmds.add(new CliCmdEntity(false,"l", "logLevel", true, "enable debug mode.", String.class));
        cmds.add(new CliCmdEntity(false,"b", "enableLoadBlance", false, "Enable loadBlance.", Boolean.class));
        cmds.add(new CliCmdEntity(false,"t", "lbType", true, "LoadBlance type: 1、AUTO, 2、CYCLE, 3、RANDOM, 4、WEIGHT.", Integer.class));
        cmds.add(new CliCmdEntity(false,"r", "registryHosts", true, "Registry hosts, Multiple are separated by ‘|’.", String.class));
        cmds.add(new CliCmdEntity(false,"hp", "httpdPort", true, "Http server port.", Integer.class));
        cmds.add(new CliCmdEntity(false,"hh", "httpdHost", true, "Http server host.", String.class));
        cmds.add(new CliCmdEntity(false,"x", "ioThreads", true, "IO thread count.", Integer.class));
        cmds.add(new CliCmdEntity(false,"y", "workerThreads", true, "Worker thread count.", Integer.class));
        cmds.add(new CliCmdEntity(false,"ss", "httpApiServerPort", true, "Http API server port.", Integer.class));
        return cmds;
    }
}
